When uploading a class category banner, resize and convert it.
Added resizeToFit function (WIP).