add test script for image loading