Add test for NewImageFromImage