simple code for animate sprite image