lots of image changes and php stuffs