Image resize via createMediaFromJSON

For Siftr, this gives `createMediaFromJSON` the ability to resize uploaded images such that the smaller of their width and height is a certain number.