Added animation and rotated sub image rendering