Make cache file being deleted only when stream gets released.

This is temporary change. It will be final when it gets update trough the pod.
Return correct video dimensions on error and success.