fix duplicate gamma correction
remove todo, add log
add buffer cache