added a delete, should move the image to a smart pointer later