big refactoring of image support. split decoding from texture uploading. use internal jpg/png impl instead of system provided