Currently, when MediaHelper doesn't find an image, it returns an empty string without any further warning (even when debug is on).
When the 'media' folder is missing or wrongly configured, the Helper outputs a php notice: 'Undefined variable: dirname'
I think it would be a benefit for usability to have more helpful error reporting for these kinds of errors.