now working with flag images included