Refactoring functions.php to match the modified JustBlack Theme Options module.
Theme option for treetitle has changed.
Use base64 for custom header image to load it from protected data directory.
Always check if theme option module is activated.
If left position is set, set right = auto or the other way around.
Support png files in personbox template.
Theme changes due to changes in the theme options module.