loading image correction

corrected error with loading image resource.