added buttons to destroy and edit images