Fix images crash