some php 5.3 adjustments and some clean up
fixed album thumbnail rendering of hidden files