photo rotate 404 workaround