update image preview size