Move image resize helper from ATPCms to ATPCore