Image loading logic coded.