fix images destroy and improve image edit form ui