Fixed filename bug.
Fixed bug where image wasn't actually deleted.