//#################################################################
// REMOVE WIDTH AND HEIGHT ATTRIBUTES
//#################################################################
function removeWidthHeightAttribute($str) {
   $str = preg_replace( '/(width|height)="\d*"\s/', "", $str );
   return $str;
}