use case statement for image to prevent error on nil [fixes #175]
Merge pull request #180 from dysania/break-data-method-into-multiple

Refactor data method in Amazon onebox