implemented Setting uploaded images as main image