Test writing pngs and jpgs to readonly location
Before this commit, there were no tests for png and jpg filters to write to readonly location. This commit adds such a test.