Update: add test code to make sure obtained image data