Photoframe project in PHP/Javascript