fix check for images on displaying image block