fix: issues #2 and #3

Bug: on document type updating uploaded image results wrong crops
Bug: on document type remove uploaded image results in YOD