moved ImagesFromRDataSource to a properer place