improving photo attachment (no tests)