Thread:Project:Support desk/API: Get images of article without special wikipedia icons

When I query the images of an article I also get the special icons for things like disambiguation, licences (creative commons icon) etc. Is there a way to suppress or to identify these images? I can't use the image size. because the original image size of these icons is often very large. Is there maybe a way to get the size used for embedding the image in the article?