making images work as a nested resource