set image size in layout instead of code