Fixed bug resulting in some Images not being considered while computing sizes