ParseInt Attributes

At this way, if the generated image has px at the attributes, will work too.