Switched from temporary to tmp and generating .png files