Backward compatibility : append "px" to height/width if the value is an integer