script to create html gallery from directory if images