use image-size instead of gm (closes #10)