Add crop_image_pct function in preparation for changes to the ruby code
Use proper string equality operators
Correct some bugs in unit test for content manager