image viewer now works 100%. can either using gd or imagick for resizing