Cleaned code and added callbacks for image loading

Images now work in color on chrome, safari and firefox