Added image resizing to match RFG's requirements.