moved sprite/image load to view