Set modes back to 0644 to ImagePage.php and Resources.php

Fix for Icd1cde7c62 (427b0e1).

Change-Id: I981a84c1b2f3997daa590acad422445e3640b5fb
Merge "Set modes back to 0644 to ImagePage.php and Resources.php"