Fixed error with displaying image