smoother diagonal redactor img resizer js