Use imagemagick instead of GIMP for auto-croppping
Add function to determine vertical distribution of Ap