Added new methods for handling inline images