fixed bug251 check if image attribute is width