RAZ-2968: Refine image preview size calculations
- Modified resizeimagethread and recreatepreview methods in aseets.cfc to correspond to new rules(See RAZ-2968 in JIRA for more details)
- Modified recraetepreview method to also read image XMP after resize and set the correct width and height in database for asset thumb
- Modifed SQL query that updates settings2 table to check for numeric values of height and width before updating data else value is set to null. This allows user to leave height or width parameter empty in which case aspect ratio will be preserved.