Added code for custom images