Provide Auto custom size change after drag the image