imagep() improve handling of 'space' [issue 296]