changed loadImg func so that there are no more broken images!