Fix image load bug