Fix image refs and sizes.