Resolved problem with displaying image