Fixed error where it would not delete image
Cleanup