remove sample images
add caching
fix function syntax error for caching