added code for image load