Fixes #1 (Metadata height and width from Image Provider sometimes are not correct or NULL)