Added ability to use images for sprites