Fix for cover photo upload. Closes #367.