Bug fixes and refactoring for media library
Bug fixes and refactor product image cropper