show maximized image only after it is succesfully loaded