Fixed issue when no image was passed