public List<PictureMessage> getPictureMessageList(List<JID> receivers, String thread) {
List<PictureMessage> list = new ArrayList<PictureMessage>();
for (JID jid : receivers) {
if (color != null) {
list.add(new ColorSettingMessage(jid, shapeIdList, color, thread,
time, actionsAuthor, counter++));
} else if (newColorList != null) {
for (long id : shapeIdList) {
list.add(new ColorSettingMessage(jid, createShapeIdList(id),
newColorList.get(id), thread, time, actionsAuthor, counter++));
}
} else {
throw new IllegalArgumentException();
}