Fixed images loading bug