Added image attachment functionality