Implemented first pass at crop and resize.