refactor upload images, fix drap image cover group, refactor js