attach images to resource-response (API)