Fix issue with loading image