adding foreground canvas
added animated sprite support