implements new feature: delete image
records timestamp in Log table
clarify some codes