1. fix a bug in image.cpp
2. animate the image on the screen for simple demonstration