Added an additional check if image has size or not, ignoring the browser cache