Fixed problem with image load