General cleanup of code, generalized pixel size in microns variable