removed legacy code, removed margins that were causing the image to be plotted without ticks