moved image handling to a class, made sprite/animated_sprite use shared_ptr's to new image handling class