Change image type used by IjWindow canvas; clean up ServerThread