Add testing code for image loader