Editor1.Setting["security:RestrictUploadedImageDimension"]="false";
Editor1.Setting["security:AutoResizeUploadedImages"]="false";