getting attribute width instead