gethsv and pixel bounds utilities, moved old stuff to archive