Fixed imgload bug