resize e upload image to fit box in editview