roll back to older PHP syntax, lots of small fixes and enhancements, optimize images