Adding php function to rotate bkground img class