Fix compiler warning
- added a method to retrieve image in a block