sub DeleteImage(img)
Removes an image from memory