Imagemagick now working, small refactoring

Imagemagick functionality works now on live and test systems. Refactored
and added comments on some support methods, and also added new feature
and steps file for image testing.