switch to libthread instead of libevent
fix transparent images artefacts when cropped
clamp cropped area to image bounds
restore previous image position on undo
fix image position being reset upon window resize or move
do not crop when selected area is below 5px wide