Fix expanded image wrong positioning and size