Resize images on server via addNoteFromJSON
Fix resizing, so min(width, height) == the number