Added image naming code