Support image with query args

Before this patch if image path contains a & in the path the shell will consider it as a background command.