test loading of image