Update Create Image function