Updated media_helper to properly reference temp directory.

Was previously hardcoded to go to #{theme}/tmp, which could cause issues if the user has elected to change it.

This is especially important on hosts like WPEngine that remove directories called 'tmp' during migrations, which can break your site completely.