Fix image scaling and positioning