the delete image method is implemented with custom route