adding loadPhotoAssets(offset, amount) function