need to make sure image is loaded