added out commented test line for view port width
fixed image regex and width/height replacement