Beginning of deleteImage function
Delete images from database and file directory working