moved sprite drawing logic into sprite component