Added support for setting color in sprite and restructured code a bit