Add ability to set file meta information and return null as width/height.
Required callback must return TRUE if value is required.
Fix code style.