added image thumbnail creation in recordTVC. TODO: add a separate thumbnail image property in the managed image object
added the categories to UIImage for resizing purposes