created PicStackImage class to represent images

thumbnail generation and usage, using gd lib for images