createimage mostly works