php Class for listing images in a given folder [Gallery Class]