Use php instead of js for random image