Removed imagemagick functions and added sips functions