Added close method to PImage