Fix images code