Added checks for String or roBitmap when initializing an image.