some modifications to image processing made from the linux machine