updated image.load method