Fixed resize function when using in conversation and Imagick PECL is enabled.
Fixed issue when Imagemagick PECL extension is not selected and image to be resized is a PNG.
No longer dependent of a specific image handler. File system operations now using XenForo file functions.
Fixed incorrect variable name in conversation resize function.