fix sepia filter for OpenGL
update 3d functions
add drawutil functions