Avoid loading images from db when not needed.