change image width base on percentage