Adding synchronous loading

Loading images in the correct order by setting the variable async:false