Added pic_bg API function
pic_bg determines if image backround is dark or light.
Needs some polishing, anyway.