Style fixes
Gave convert -resize a percent instead of abs size
Changed function signature to reflect buffer API